package site.yunnong.common.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import site.yunnong.common.utils.PageUtils;
import site.yunnong.common.utils.Query;

import site.yunnong.common.dao.UserReportDao;
import site.yunnong.common.entity.UserReportEntity;
import site.yunnong.common.service.UserReportService;


@Service("userReportService")
public class UserReportServiceImpl extends ServiceImpl<UserReportDao, UserReportEntity> implements UserReportService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserReportEntity> page = this.page(
                new Query<UserReportEntity>().getPage(params),
                new QueryWrapper<UserReportEntity>()
        );

        return new PageUtils(page);
    }

}